#include "librawsocket.h"
       


RawSocket::RawSocket(std::string interface, std::string remote_ip, int port)
{
// strncpy(interface.ifr_ifrn.ifrn_name, argv[1], IFNAMSIZ);    
}
RawSocket::RawSocket()
{

}
RawSocket::~RawSocket(){

}
int     RawSocket::socket(int domain, int type, int protocol)
{
    return socket(domain, type, protocol);
}
int     RawSocket::bind(int sockfd, const struct sockaddr *addr,socklen_t addrlen)
{
    return bind(sockfd, addr, addrlen);
}
int     RawSocket::getsockopt(int sockfd, int level, int optname,void *optval, socklen_t *optlen)
{
    return getsockopt(sockfd, level, optname, optval, optlen);
}
int     RawSocket::setsockopt(int sockfd, int level, int optname,const void *optval, socklen_t optlen)
{
    return setsockopt(sockfd, level, optname, optval, optlen);
}
int     RawSocket::connect(int sockfd, const struct sockaddr *addr,socklen_t addrlen)
{
    return connect(sockfd, addr, addrlen);
}
ssize_t RawSocket::send(int sockfd, const void *buf, size_t len, int flags)
{
    return send(sockfd, buf, len, flags);
}
ssize_t RawSocket::sendto(int sockfd, const void *buf, size_t len, int flags,const struct sockaddr *dest_addr, socklen_t addrlen)
{
    return 0;
}
ssize_t RawSocket::sendmsg(int sockfd, const struct msghdr *msg, int flags)
{
    return 0;
}
ssize_t RawSocket::recv(int sockfd, void *buf, size_t len, int flags)
{
    return recv(sockfd, buf, len, flags);
}
ssize_t RawSocket::recvfrom(int sockfd, void *buf, size_t len, int flags,struct sockaddr *src_addr, socklen_t *addrlen)
{
    return 0;
}
ssize_t RawSocket::recvmsg(int sockfd, struct msghdr *msg, int flags)
{
    return 0;
}
int     RawSocket::close(int fd)
{
    return close(fd);
}
